{include file="public_iframe:head"}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>应用列表</h5>
                    <div class="ibox-tools" style="margin-top: -9px;">
                        <!--<a href="javascript:location.reload();" class="btn btn-primary"><i class="fa fa-refresh"></i> 刷新</a>-->
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3">
                            <a href="{:url('Banner/edit')}" class="btn btn-primary">添加</a>
                        </div>
                        <form class="form-inline" action="" method="get">
                            <div class="col-sm-9">
                                <div class="input-group col-sm-3  pull-right">
			                                    
                                </div>

                                <div class="input-group col-sm-1 pull-right select_width">
                              
                                </div>
                            </div>
                        </form>
                    </div>

                    <br />

                    <div class="table-responsive">
                            <table class="table table-bordered table-hover"
                                   id="categoryTable">
                                <thead>
                                <tr class="active">
                                    <th height="40">编号</th>
                                    <th>图片</th>
                                    <th>是否启用</th>
                                    <th width="80">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="banner" id="vo"}
                                    <tr>
                                        <td>{$vo['id']}</td>
                                        <td><img alt="image" style="width:130px;height:130px;" class="" src="__STATIC__/uploads/{$vo.path}"></td>
                                        <td>
                                            {switch name="$vo.status"}
                                                {case value="1"}启用{/case}
                                                {default /}不启用
                                            {/switch}
                                        </td>
                                        <td class="center" width="140">
                                            <a href="{:url('Banner/edit',array('id'=>$vo['id']))}" class="btn btn-primary">编辑</a>
                                            <a href="{:url('Banner/delete',array('id'=>$vo['id']))}" class="btn btn-primary">删除</a>
                                        </td>
                                    </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </form>
                        <div class="col-sm-12" style="padding:0px;">
                            <ul class="pagination  pull-right">
                                
                                
                            </ul>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>

</body>

</html>